/**
 * Email ：huangyijia138@qq.com
 * Des：
 *
 * @description: 动物类
 * @author: huangjiajia
 * @create: 2025-01-19 14:47
 **/
public class Animal {
    String name;
    int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


    public void eat(){
        System.out.println("这个动物他会吃草！");
//        return "这个动物它会吃草";
    }


}
